﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace MonkeysWithTypewriters.MonkeyProcessing
{
    public static class ExtensionMethods
    {
        public static string Capitalize(this string originalString)
        {
            if (!string.IsNullOrEmpty(originalString))
            {
                string firstCharacter = originalString.Substring(0, 1).ToUpper();
                string newString = firstCharacter; 
                if (originalString.Length >= 2)
                {
                    newString += originalString.Substring(1);
                }

                return newString;
            }

            return originalString;
        }
    }
}
